<?php
use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/autoreply',
    'namespace' => 'Frieza\\Modules\\Autoreply\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    // 设计师小助手自动回复
    $router->get('/designer/question', 'DesignerQuestionController@index')->name('designer_question.list');
    $router->get('/designer/question/create', 'DesignerQuestionController@edit');
    $router->get('/designer/question/{id}/edit', 'DesignerQuestionController@edit');
    $router->post('/designer/question/save', 'DesignerQuestionController@save');
    $router->delete('/designer/question/{id}', 'DesignerQuestionController@del');
    $router->get('/designer/answer/create', 'DesignerAnswerController@edit');
    $router->get('/designer/answer/{id}/edit', 'DesignerAnswerController@edit');
    $router->post('/designer/answer/save', 'DesignerAnswerController@save');
    $router->delete('/designer/answer/{id}', 'DesignerAnswerController@del');
});
